package com.zan.springcloud.service.fallback;

import com.zan.springcloud.entity.CommonResult;
import com.zan.springcloud.entity.Payment;
import com.zan.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @Author Zan
 * @Create 2024/1/6 20:20
 * @Description :
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回,没有该流水信息, ----PaymentFallbackService", new Payment(id, "errorSerial......"));
    }
}
